extends Control

func _ready():
	GlobalVar.mouse_input_lock = false

func _on__button_button_down():
	get_tree().change_scene_to_file("res://scenes/ui/menu/main_menu.tscn")

func _on_level_1_pressed():
	GlobalVar.exit_door_open = false
	GlobalVar.current_level = 1 as int
	get_tree().change_scene_to_file("res://scenes/levels/level_1_e.tscn")


func _on_level_2_pressed():
	GlobalVar.exit_door_open = false
	GlobalVar.current_level = 2 as int
	get_tree().change_scene_to_file("res://scenes/levels/level_2.tscn")


func _on_level_3_pressed():
	GlobalVar.exit_door_open = false
	GlobalVar.current_level = 3 as int
	get_tree().change_scene_to_file("res://scenes/levels/level_3.tscn")
